<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="${class.package}.${class.name}Form" %>
<%@ page import="${modelClass}" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${class.name} List View</title>
<style type="text/css">
* {
	font-size: 12px;
}
</style>
</head>
<body>
<table border="1">
	<tr>
#for f in class.fields
		<td>${.f.name}</td>
#end
	</tr>
	<%
		List<${class.name}> list = (List<${class.name}>) request.getAttribute("${class.fname}s");
		for(int i=0;i<list.size();i++){
			${class.name} ${class.fname} = list.get(i);
	%>
	<tr>
#for f in class.fields
		<td><%=${class.fname}.${.f.get}() %></td>
#end
	</tr>
	<%}%>
</table>
<a href="<%=request.getContextPath() %>${forwardJspUrl}/${class.fname}s/create.jsp">New ${class.name}</a>
</body>
</html>